<%@page import="cn.mothin.dictionary.UserTitle"%>
<%@page import="cn.mothin.dictionary.Sex"%>
<%@page import="cn.mothin.dictionary.SystemUserState"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <%@ include file="/include/meta.jsp"%>
    <title>添加新用户</title>
    <link rel="stylesheet" type="text/css" href="wro/edit.css" />
</head>
<body>
    <form action="system/user!saveForAdd.action" style='display:none;'>
        <input type="text" id="name" title='*名称' name="systemUser.name" class='half'/>
        <input type="text" title='性别' name='systemUser.sex' role='dictionarySelect' data-options='dictionaryType:"<%=Sex.Id %>",selected:"<%=Sex.UNKOWN.getId() %>"'/>
        <input type="text" title='*登录账号' id='account' name="systemUser.account" class='half' />
        <input type="text" title='用户状态' id='state' name="systemUser.state" role='dictionarySelect' data-options='dictionaryType:"<%=SystemUserState.Id %>",selected:"<%=SystemUserState.NORMAL.getId() %>"' />
        <input type="text" title='组织机构' name="systemUser.organizationId" role='organizationSelect' class='half' />
        <input type="text" title='头衔' name="systemUser.title" role='dictionarySelect' data-options='dictionaryType:"<%=UserTitle.Id %>",selected:"<%=UserTitle.UNKOWN.getId() %>"' />
        <input type="text" title='角色' role='roleSelect' name="roles" />
        <input type="text" title='固定电话' id='telephone' name="systemUser.telephone" class='half' />
        <input type="text" title='移动电话' id='mobile' name="systemUser.mobile" />
        <input type="text" title='邮箱' id='email' name="systemUser.email" />
        <textarea rows="5" title='备注' id='memo' name="systemUser.memo"></textarea>
        <div class="text-center">
            <input type="submit" value="提交" class='btn btn-primary' />
            <input type="button" value="取消" class='btn btn-warning' onclick="closeDialog();" />
        </div>
    </form>
    <script type="text/javascript" src="wro/edit.js"></script>
    <script type="text/javascript" src="res/page/system/user_add.js"></script>
</body>
</html>